<template>
  <div>
    <BasicTable @register="registerTable">
      <template #action="{ record }"></template>
    </BasicTable>
  </div>
</template>
<script lang="ts" setup name="vipcardCheckrecordTotal2">
import { BasicTable } from '@apps/antd-admin/src/components/Table';
import { useDrawer } from '@apps/antd-admin/src/components/drawer';
import { useBaseTable } from '@apps/antd-admin/src/hooks';
import { columns, searchFormSchema } from './data';
import { Api } from './api';

const [registerDrawer, { openDrawer }] = useDrawer();
const { prefixCls, tableContext, handleDelete, handleSuccess, handlePost, handleBatchDelete } = useBaseTable({
  designScope: 'vipcardCheckrecordTotal2-template',
  tableProps: {
    //表格标题
    title: '核销统计',
    //主键字段
    rowKey: 'checkrecordId',
    //列表接口
    listUrl: Api.totalPage,
    handlerName: 'busAdminVipCardCheckRecordTotal2ListHandler',
    //列定义
    columns,
    //查询表单配置
    formConfig: {
      labelWidth: 120,
      schemas: searchFormSchema,
      showExportButton: true,
    },
    showActionColumn: false,
  },
});

const [registerTable, { reload }, { rowSelection, hasSelectedRows }] = tableContext;
</script>
